﻿@model blacksoft.Models.Persona
@using blacksoft.Helpers
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutSeguridad.cshtml";
}

<div class="block big">
    <div class="titlebar">
        <h3>Crear Contraseña</h3>
    </div>
    <div class="block_cont">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()

            <div class="form">
                @Html.ValidationSummary(true)
                @Html.HiddenFor(model => model.IDPersona)
                <div class="form-row">
                    @Html.LabelForRequired(model => model.Nombre)
                    @Html.TextBoxFor(model => model.Nombre, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.Nombre)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.ApellidoPaterno)
                    @Html.TextBoxFor(model => model.ApellidoPaterno, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.ApellidoPaterno)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.ApellidoMaterno)
                    @Html.TextBoxFor(model => model.ApellidoMaterno, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.ApellidoMaterno)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.DNI)
                    @Html.TextBoxFor(model => model.DNI, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.DNI)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.FechaNacimiento)
                    @Html.TextBoxFor(model => model.FechaNacimiento, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.FechaNacimiento)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.RazonSocial)
                    @Html.TextBoxFor(model => model.RazonSocial, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.RazonSocial)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.RUC)
                    @Html.TextBoxFor(model => model.RUC, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.RUC)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Direccion)
                    @Html.TextBoxFor(model => model.Direccion, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.Direccion)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Telefono)
                    @Html.TextBoxFor(model => model.Telefono, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.Telefono)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.TipoPersona)
                    @Html.TextBoxFor(model => model.TipoPersona, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.TipoPersona)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.CargoPersonal)
                    @Html.TextBoxFor(model => model.CargoPersonal, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.CargoPersonal)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.PuntosAcumulados)
                    @Html.TextBoxFor(model => model.PuntosAcumulados, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.PuntosAcumulados)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.FechaRegistro)
                    @Html.TextBoxFor(model => model.FechaRegistro, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.FechaRegistro)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Estado)
                    @Html.TextBoxFor(model => model.Estado, new { @class = "text-box single-line", @readonly = "readonly" })
                    @Html.ValidationMessageFor(model => model.Estado)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.IDTerminal)
                    @Html.DropDownList("IDTerminal", null, "Elegir", new { @class = "select" })
                    @Html.ValidationMessageFor(model => model.IDTerminal)
                </div>

                <div class="form-row">
                    @Html.LabelForRequired(model => model.Email)
                    @Html.EditorFor(model => model.Email)
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
                <br />
                <div class="form-row">
                    <input type="submit" value="Crear contraseña" class="btn btn-default" />
                    <br />
                    @Html.ActionLink("Regresar al listado", "Index")
                </div>
            </div>
        }
    </div>
</div>


